using System;
using System.Xml;
using System.IO;
using System.Text;

namespace Unified.Network.Atom {
	public class Entry    {
		private string title = string.Empty;
		private DateTime issued = DateTime.Now;
		private DateTime created = DateTime.Now;
		private DateTime modified = DateTime.Now;
		private string content;
		private string entryId;

		public Entry(){}

		public Entry(string title, string content) {
			this.title = title;
			this.content = content;
		}
		public Entry(string title, string content, DateTime issued):this(title, content) {
			this.issued = issued;
		}

		public Entry(string title, string content, string issuedAsString):this(title, content) {
			this.issued = DateTime.Parse(issuedAsString);
		}


		public string Title {
			set {title = value;}
			get {return title;}
		}
		public DateTime Issued {
			set {issued = value;}
			get {return issued;}
		}
		public string Content {
			set {content = value;}
			get {return content;}
		}
		public string EntryId {
			set {entryId = value;}
			get {return entryId;}
		}
	}

}